//
//  WKAddressTableViewCell.h
//  ourToken
//
//  Created by wakeup on 2018/5/31.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import <UIKit/UIKit.h>
@class WKAddressListModel;
@class WKAddressTableViewCell;

@protocol WKAddressTableViewCellDelegate <NSObject>

@optional
//修改
- (void)updateAddressWithTableViewCell:(WKAddressTableViewCell *)cell andUpdateBtn:(UIButton *)button;

//删除
- (void)deleteAddressWithTableViewCell:(WKAddressTableViewCell *)cell andDeleteBtn:(UIButton *)button;

@end

@interface WKAddressTableViewCell : UITableViewCell

@property (nonatomic, weak) id<WKAddressTableViewCellDelegate>delegate;

@property (weak, nonatomic) IBOutlet UIView *backView;//背景view
@property (weak, nonatomic) IBOutlet UIImageView *coinImageView;//图标
@property (weak, nonatomic) IBOutlet UILabel *name;//名称
@property (weak, nonatomic) IBOutlet UILabel *address;//地址
@property (weak, nonatomic) IBOutlet UILabel *coinType;//币种(ETH或BTC等)
@property (weak, nonatomic) IBOutlet UIButton *updateBtn;//修改按钮
@property (weak, nonatomic) IBOutlet UIButton *deleteBtn;//删除按钮

//模型
@property (nonatomic, strong) WKAddressListModel *addressListModel;

@end
